package com.frogs.ucenter.dao.ibatis;

import java.sql.SQLException;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

import com.frogs.framework.base.dao.ibatis.BaseDaoIbatis;
import com.frogs.framework.util.PageList;
import com.frogs.ucenter.dao.TotalFlowInfoDao;
import com.frogs.ucenter.entity.TotalFlowInfo;
import com.frogs.ucenter.entity.TotalFlowInfoWithCompleteInfo;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository("totalFlowInfoDao")
public class TotalFlowInfoDaoImpl extends BaseDaoIbatis<TotalFlowInfo> implements TotalFlowInfoDao {

    public TotalFlowInfoDaoImpl() {
        super();
        setNameSpace( "total_flow_info" );
    }

    @Required
    @Autowired
    public void setSqlMapClientAutowired(SqlMapClient sqlMapClient) {
        super.setSqlMapClient( sqlMapClient );
    }
    
    @Override
    public PageList<TotalFlowInfoWithCompleteInfo> selectWithCompletionByMap(Map<String, Object> params, int pageNo, int pageSize) throws SQLException {
		return queryforPageList(getNameSpace() + ".selectWithCompletionByMap", params, pageNo, pageSize, true);
	}
}